﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = ElectronicEquipment
		Group                          = CargoScanners
		Module                         = standard cargo scanner
		CpuUsage                       = 20.00 TF
		ReactorUsage                   = 10.00 RP
		Type                           = Active
		Slot                           = Head
		TechnologicalLevel             = T1
		Mass                           = 100.00 kg
		PackedVolume                   = 0.25 U
		Volume                         = 0.50 U
		AccumulatorConsumption         = 50.00 AP
		CycleTime                      = 10.00 sec
		OptimalRange                   = 150 m
		Falloff                        = 200 m
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// Standard cargo scanner module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:53</remarks>
    public sealed class StandardCargoScanner : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="StandardCargoScanner"/> class.
        /// </summary>
        public StandardCargoScanner()
            : base(
            "Standard cargo scanner",
            "",
            ModuleMetaGroupsEnum.ElectronicEquipment,
            ModuleGroupsEnum.CargoScanners,
            TechnologyLevelsEnum.Level1,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(CpuUsage<double>),20.00),
				new LazyFeature(typeof(ReactorUsage<double>),10.00),
				new LazyFeature(typeof(ModuleMass<double>),100.00),
				new LazyFeature(typeof(AccumulatorUsage<double>),50.00),
				new LazyFeature(typeof(CargoScannerCycleTime<double>),10.00),
				new LazyFeature(typeof(CargoScannerOptimal<double>),150),
				new LazyFeature(typeof(CargoScannerFalloff<double>),200), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 100.00 ){ IsVisible = false }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Active; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Head; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Modules; }
        }
    }
}